package com.brandon.HuntedRPG.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

import com.brandon.HuntedRPG.R;
import com.brandon.HuntedRPG.model.actor.ActorTraits;

public final class BaseTraitsInfoView extends TraitsInfoView {
	private final TextView	basetraitsinfo_max_hp;
	private final TextView	basetraitsinfo_max_ap;

	public BaseTraitsInfoView(Context context, AttributeSet attr) {
		super(context, attr, R.layout.basetraitsinfoview);

		basetraitsinfo_max_hp = (TextView) findViewById(R.id.basetraitsinfo_max_hp);
		basetraitsinfo_max_ap = (TextView) findViewById(R.id.basetraitsinfo_max_ap);
	}

	@Override
	public void update(ActorTraits traits) {
		super.update(traits);

		basetraitsinfo_max_hp.setText(Integer.toString(traits.maxHP));
		basetraitsinfo_max_ap.setText(Integer.toString(traits.maxAP));
	}
}
